package javax.mail.event;

import javax.mail.Message;

public class MessageChangedEvent extends MailEvent {
    protected transient Message msg;
    protected int type;

    public MessageChangedEvent(Object source, int type, Message msg) {
        super(source);
        this.msg = msg;
        this.type = type;
    }

    public void dispatch(Object listener) {
        ((MessageChangedListener) listener).messageChanged(this);
    }
}
